<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<script type="text/javascript" src="jquery/js/jquery-1.8.2.js"></script>
<script type="text/javascript"
	src="js/myCustonAndShoppingCar/upload/jquery.uploadify.min.js"></script>
	<script type="text/javascript" src="js/myCustonAndShoppingCar/upload/swfobject.js"></script>
<link href="js/myCustonAndShoppingCar/upload/uploadify.css"
	rel="stylesheet"></link>
<script type="text/javascript">
	$(document).ready(function() {
		$('#file_upload').uploadify({
			'uploader' : 'js/myCustonAndShoppingCar/upload/uploadify.swf',
			'script' : 'uploadFile_xixiaoming.action', //需要跳转的action
			'fileDataName' : 'myfile', //这个很重要这个名称必须要和后面input的name，action中的文件名称相同
			'buttonText' : 'UpLoad', //按钮上显示的文字，但中文应该不行
			'cancelImg' : 'js/myCustonAndShoppingCar/upload/uploadify-cancel.png',
			'folder' : '/temp',
			'sizeLimit' : 102400, //上传文件大小限制，现在为1M
			'auto' : true, //自动上传
			/* onComplete : function(event, queueID, fileObj, response, data) { //这是回调函数，当上传完成以后执行
				$('p').html(data.newFileName + "上传成功");
			} */
		});
	});
</script>

</head>
<body>
	<input id="file_upload" type="file" name="myfile" />
	<p></p>
</body>
</html>
